
package ${packageName};

<#list imports as import>
import ${import};
</#list>
import ${basePackage}.api.${underlineToCamel(sourceTable?lower_case,true?string)}Api;
import ${basePackage}.vo.${underlineToCamel(sourceTable?lower_case,true?string)}Vo;
import ${basePackage}.param.${underlineToCamel(sourceTable?lower_case,true?string)}Param;

/**
* ${sourceTableDesc}:${sourceTable} 服务降级处理.
* @ClassName: ${underlineToCamel(sourceTable?lower_case,true?string)}ApiFallback
* @Description: ${sourceTableDesc}:${sourceTable} 对应的服务降级处理.
* @author: ${author}
* @date:   ${.now}
* @version V1.0
*/

@Component
public class ${underlineToCamel(sourceTable?lower_case,true?string)}ApiFallback implements ${underlineToCamel(sourceTable?lower_case,true?string)}Api {

    @Override
    public ApiResult<${underlineToCamel(sourceTable?lower_case,true?string)}Vo> query${underlineToCamel(sourceTable?lower_case,true?string)}ById(String id){
        return ApiResult.failedResponse("fail",null);
    }

    @Override
    public ApiResult<List<${underlineToCamel(sourceTable?lower_case,true?string)}Vo>> query${underlineToCamel(sourceTable?lower_case,true?string)}ByIds(List<String> ids){
        return ApiResult.failedResponse("fail",null);
    }

    @Override
    public ApiResult<IPage<${underlineToCamel(sourceTable?lower_case,true?string)}Vo>> queryForPage(${underlineToCamel(sourceTable?lower_case,true?string)}Param params,Integer pageNo,Integer pageSize){
        return ApiResult.failedResponse("fail",null);
    }

    @Override
    public ApiResult<List<${underlineToCamel(sourceTable?lower_case,true?string)}Vo>> queryForList(${underlineToCamel(sourceTable?lower_case,true?string)}Param params){
        return ApiResult.failedResponse("fail",null);
    }

    @Override
    public ApiResult<${underlineToCamel(sourceTable?lower_case,true?string)}Vo> add(${underlineToCamel(sourceTable?lower_case,true?string)}Vo vo){
        return ApiResult.failedResponse("fail",null);
    }

    @Override
    public ApiResult<List<${underlineToCamel(sourceTable?lower_case,true?string)}Vo>> adds(List<${underlineToCamel(sourceTable?lower_case,true?string)}Vo> voList){
        return ApiResult.failedResponse("fail",null);
    }

    @Override
    public ApiResult<${underlineToCamel(sourceTable?lower_case,true?string)}Vo> modify(${underlineToCamel(sourceTable?lower_case,true?string)}Vo vo){
        return ApiResult.failedResponse("fail",null);
    }

    @Override
    public ApiResult<List<${underlineToCamel(sourceTable?lower_case,true?string)}Vo>> modifys(List<${underlineToCamel(sourceTable?lower_case,true?string)}Vo> voList){
        return ApiResult.failedResponse("fail",null);
    }

    @Override
    public ApiResult<Void> removeUser(String id){
        return ApiResult.failedResponse();
    }

    @Override
    public ApiResult<Void> removeUsers(List<String> ids){
       return ApiResult.failedResponse();
    }

    @Override
    public ApiResult<Void> exportExcel(${underlineToCamel(sourceTable?lower_case,true?string)}Param params , HttpServletResponse response) throws Exception{
       return ApiResult.failedResponse();
    }

}